<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let obj={a:{b:{c:1}}}
    // console.log(obj.a.b.c);
    // let {a:{b:{c}}}=obj
    // console.log(c);
    // let obj2={a:{b:1}}
    let obj2={a:{b:1}}
    let {a:{b:data}}=obj2
    console.log(data,obj2);//data就是1，对象还是原来的对象
</script>
</html>